package com.kn.sys.service;

import com.kn.common.model.PageBean;
import com.kn.common.model.R;
import com.kn.sys.dto.UserDto;

/**
 * @author zhouxp
 * @create 2021-03-04 11:24
 */
public interface UserService {
    R list(PageBean pageBean, String name);

    R add(UserDto userDto);

    R delete(Long id);

    R edit(Long id, UserDto userDto);


    R getRoleIdByUserId(Long userid);

    R login(String username, String password);

}
